package yjxxt.Dao;

import org.apache.ibatis.annotations.Param;
import yjxxt.entity.Dept;
import yjxxt.entity.DeptEmp;
import yjxxt.entity.Emp;

import java.sql.SQLException;
import java.util.List;

public interface DeptDao {
//    public int insert(Dept dept);
    List<DeptEmp> findAllDeptAndLeader() throws SQLException;
    List<DeptEmp> findDeptWithMostEmployees() throws SQLException;
    boolean addDeptAndLeader(@Param("dept") Dept dept, @Param("emp") Emp emp);

}

